package com.iu.eblood.model;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;


/**
 * The persistent class for the ADRESSTYPE database table.
 * 
 */
@Entity
public class Adresstype implements Serializable {
	private static final long serialVersionUID = 1L;
	private int adresstypeid;
	private String adresstypename;
	private Timestamp createddate;
	private Timestamp deleteddate;
	private String isactive;
	private List<Adresslookup> adresslookups;

    public Adresstype() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public int getAdresstypeid() {
		return this.adresstypeid;
	}

	public void setAdresstypeid(int adresstypeid) {
		this.adresstypeid = adresstypeid;
	}


	public String getAdresstypename() {
		return this.adresstypename;
	}

	public void setAdresstypename(String adresstypename) {
		this.adresstypename = adresstypename;
	}


	public Timestamp getCreateddate() {
		return this.createddate;
	}

	public void setCreateddate(Timestamp createddate) {
		this.createddate = createddate;
	}


	public Timestamp getDeleteddate() {
		return this.deleteddate;
	}

	public void setDeleteddate(Timestamp deleteddate) {
		this.deleteddate = deleteddate;
	}


	public String getIsactive() {
		return this.isactive;
	}

	public void setIsactive(String isactive) {
		this.isactive = isactive;
	}


	//bi-directional many-to-one association to Adresslookup
	@OneToMany(mappedBy="adresstype")
	public List<Adresslookup> getAdresslookups() {
		return this.adresslookups;
	}

	public void setAdresslookups(List<Adresslookup> adresslookups) {
		this.adresslookups = adresslookups;
	}
	
}